package org.example.new_hbps_backend_reconstruction.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.example.new_hbps_backend_reconstruction.common.results.R;
import org.example.new_hbps_backend_reconstruction.dto.HeartRateStatsDTO;
import org.example.new_hbps_backend_reconstruction.entity.PatientDoctorEntity;

import java.util.List;

public interface PatientDoctorService extends IService<PatientDoctorEntity> {

    List<Long> getPatientUidsByDoctorUid(Long doctorUid);

    HeartRateStatsDTO getHeartRateStats(Long doctorUid);

    //boolean setPatientDoctorBinding(Long patientUid, Long doctorUid);

    R addItem(PatientDoctorEntity patientDoctor);

    R updateItem(PatientDoctorEntity patientDoctor);
    long countPatientsByDoctorId(Long doctorUid);

    long countPatientsByDoctorIdAndCare(Long doctorUid);

    long countBloodPressureRecordsByDoctorId(Long doctorUid);

    long countYesterdayAbnormalBloodPressureRecordsByDoctorId(Long doctorUid);

    int removeByDoctorUid(Long doctorUid);
}